<?php
return array(
	'cascade' => array(
		'facility', 'tGuide',
	),
	'formView' => array(
		'fields' => array(
			'baseInfo' => array(
				'id' => false,
				'image' => array('class' => 'FileField'),
				'star'=> array('dropDownList',Yii::app()->enum->options('basic.hotelStar')),
				'uid' => array('dropDownList', Yii::app()->enum->options('worker.worker')),
				'province' => array(
					'class' => 'LinkageField',
					'name' => 'district',
					'fields' => array(
						array('province', 1),
						array('city', 2),
						array('district', 3)
					)
				),
				'city' => false,
				'district' => false,
				'is_recommend' => array('checkBox'),
				'desc' => array('class' => 'RichtextField', 'params'=>array('htmlOptions'=>array('style'=>'width:100%;height:200px'))),
			),
			'facility' => array(
				'id' => false,
				'hotel_id' => false,
				'dining' => array('textField', array(
					'style' => 'width:400px',
				)),
				'sports' => array('textField', array(
					'style' => 'width:400px',
				)),
				'meeting' => array('textField', array(
					'style' => 'width:400px',
				)),
				'card' => array('textField', array(
					'style' => 'width:400px',
				)),
			),
			'tGuide' => array(
				'id' => false,
				'hotel_id' => false,
			),
		)
	),
	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);